<HTML> <!-- http://www.liveupdate.com/midi.html 4 Crescendo plug-in --> <!-- THE JAVASCRIPT COOKBOOK by Erica Sadun, webrx@mindspring.com J. Brook Monroe, mrprogguy@techie.com Copyright (c)1998 by Charles River Media. All Rights Reserved. This applet can only be re-used or modifed by license holders of the JavaScript Cookbook CD-ROM. Credit must be given in the source code and this copyright notice must be maintained. If you do not hold a license to the JavaScript Cookbook, you may NOT duplicate or modify this code for your own use. Use at your own risk. No warranty is given or implied of the suitability of this applet for any specific application. Neither Erica Sadun, J. Brook Monroe nor Charles River Media will be held responsible for any unwanted effects due to the use of this applet or any derivative. --> <HEAD> <TITLE>Guitar Salmon</TITLE> <SCRIPT SRC="music-object.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"><!-- e0note = new musicObject("e0note"); anote = new musicObject("anote"); dnote = new musicObject("dnote"); gnote = new musicObject("gnote"); bnote = new musicObject("bnote"); e1note = new musicObject("e0note"); function Setup() { if(e0note == null) alert('Null musicObject'); } function playWAV(note) { with (window [note + 'note']) { if (isReady ()) { setAutostart (true); play (); } else alert(note+" isn't ready"); } } //--> </SCRIPT> </HEAD> <BODY onLoad="Setup()"> <FONT COLOR="007777"><H1><IMG SRC="../GRAFX/UTENS.JPG" WIDTH=80 HEIGHT=50 ALIGN = LEFT>Guitar Salmon</H1></FONT> <BLOCKQUOTE><FONT COLOR="770000"> "Guitar Tuna" was too obvious a pun--and we couldn't find a good picture of a tuna.<p> <FONT COLOR="#007777">To use this recipe, your Netscape browser must be equipped with a WAV audio plugin, such as <A HREF="http://www.headspace.com/">Beatnik</A>.</FONT><p> </FONT> <MAP name="tuner"> <AREA SHAPE="circle" COORDS="73,73,14" HREF="javascript:playWAV('e0')"> <AREA SHAPE="circle" COORDS="104,96,14" HREF="javascript:playWAV('a')"> <AREA SHAPE="circle" COORDS="136,73,14" HREF="javascript:playWAV('d')"> <AREA SHAPE="circle" COORDS="166,96,14" HREF="javascript:playWAV('g')"> <AREA SHAPE="circle" COORDS="197,73,14" HREF="javascript:playWAV('b')"> <AREA SHAPE="circle" COORDS="228,96,14" HREF="javascript:playWAV('e1')"> </MAP> <CENTER><IMG SRC="../GRAFX/GTRFISH.JPG" WIDTH=302 HEIGHT=192 BORDER=0 USEMAP="#tuner" ISMAP></CENTER> <FONT COLOR="007777"><H2>Discussion</H2></FONT> <FONT SIZE=4> While not unlike the J.S. Bach recipe, this recipe is undoubtedly more useful. You could, with very little effort, produce something to tune a mandolin, banjo, koto, shamisen, or harp. Okay, maybe harp is pushing the envelope. That graphic might not fit on an average web page. </FONT> <BR><BR><h5>Copyright ©1998 by Charles River Media, All Rights Reserved</h5> <EMBED SRC="E0.WAV" TYPE="audio/wav" NAME="e0notePlugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="e0note.setReady()"> <EMBED SRC="A.WAV" TYPE="audio/wav" NAME="anotePlugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="anote.setReady()"> <EMBED SRC="D.WAV" TYPE="audio/wav" NAME="dnotePlugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="dnote.setReady()"> <EMBED SRC="G.WAV" TYPE="audio/wav" NAME="gnotePlugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="gnote.setReady()"> <EMBED SRC="B.WAV" TYPE="audio/wav" NAME="bnotePlugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="bnote.setReady()"> <EMBED SRC="E1.WAV" TYPE="audio/wav" NAME="e1notePlugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="e1note.setReady()"> </BODY> </HTML>